Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = void 0;

var _api = _interopRequireDefault(require("../../../utils/api"));

function _interopRequireDefault(e) {
    return e && e.__esModule ? e : {
        default: e
    };
}

function _objectSpread(t) {
    for (var e = 1; e < arguments.length; e++) {
        var r = null != arguments[e] ? arguments[e] : {}, o = Object.keys(r);
        "function" == typeof Object.getOwnPropertySymbols && (o = o.concat(Object.getOwnPropertySymbols(r).filter(function(e) {
            return Object.getOwnPropertyDescriptor(r, e).enumerable;
        }))), o.forEach(function(e) {
            _defineProperty(t, e, r[e]);
        });
    }
    return t;
}

function _defineProperty(e, t, r) {
    return t in e ? Object.defineProperty(e, t, {
        value: r,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : e[t] = r, e;
}

function _objectWithoutProperties(e, t) {
    if (null == e) return {};
    var r, o, n = _objectWithoutPropertiesLoose(e, t);
    if (Object.getOwnPropertySymbols) {
        var i = Object.getOwnPropertySymbols(e);
        for (o = 0; o < i.length; o++) r = i[o], 0 <= t.indexOf(r) || Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
    }
    return n;
}

function _objectWithoutPropertiesLoose(e, t) {
    if (null == e) return {};
    var r, o, n = {}, i = Object.keys(e);
    for (o = 0; o < i.length; o++) r = i[o], 0 <= t.indexOf(r) || (n[r] = e[r]);
    return n;
}

function addFollowRecord(e, t) {
    var r = e.issystem, o = void 0 === r ? 1 : r, n = _objectWithoutProperties(e, [ "issystem" ]);
    return _api.default.minicard.business.addfollow({
        data: _objectSpread({
            issystem: o
        }, n),
        complete: t
    });
}

var _default = {
    addFollowRecord: addFollowRecord
};

exports.default = _default;